import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/app/list',
    method: 'get',
    params
  })
}

export function getOverview() {
  return request({
    url: '/app/overview',
    method: 'get'
  })
}

export function getAppDetail(params) {
  return request({
    url: '/app/detail',
    method: 'get',
    params
  })
}

export function listAppNames(params) {
  return request({
    url: '/app/listAppNames',
    method: 'get',
    params
  })
}

export function updateApp(data) {
  return request({
    url: '/app/update',
    method: 'post',
    data
  })
}

export function online(data) {
  return request({
    url: '/app/online',
    method: 'post',
    data
  })
}

export function offline(data) {
  return request({
    url: '/app/offline',
    method: 'post',
    data
  })
}
